using System;
using System.Collections.Generic;
using System.Text;

namespace Acms.DataControls
{
    [System.ComponentModel.Designer(typeof(UserPostUploadDataSourceDesigner))]
    [System.Web.UI.ToolboxData("<{0}:UserPostUploadDataSource runat=server></{0}:UserPostUploadDataSource>")]
    public class UserPostUploadDataSource : GenericDataSource<Bll.UserPostUpload>
    {
    }

    public class UserPostUploadDataSourceDesigner : GenericDataSourceDesigner<Bll.UserPostUpload>
    {

        protected override Acms.Bll.UserPostUpload GetDesignTimeItem(int index)
        {
            Random rnd = new Random();
            Bll.UserPostUpload tmp = Bll.UserPostUpload.CreateInstance(rnd.Next(1, 100), rnd.Next(1, 100), System.Net.IPAddress.Parse("127.1.1.0"));
            return tmp;
        }
    }
}
